# -*- coding: utf-8 -*-


from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_LoginDialog(QtWidgets.QMainWindow):
    
    def setupUi(self, LoginDialog):
        LoginDialog.setObjectName("LoginDialog")
        LoginDialog.resize(400, 300)
        icon = QtGui.QIcon.fromTheme("log")
        LoginDialog.setWindowIcon(icon)
        LoginDialog.setStyleSheet("")
        LoginDialog.setWindowOpacity(0.99)

        self.usrn = QtWidgets.QLabel(LoginDialog)
        self.usrn.setGeometry(QtCore.QRect(50, 140, 59, 16))
        font = QtGui.QFont()
        font.setFamily("Aa芒小果")
        font.setPointSize(14)
        font.setBold(True)
        self.usrn.setFont(font)
        self.usrn.setStyleSheet("background-color: rgba(255, 255, 255, 75);")
        self.usrn.setObjectName("usrn")
        self.usrp = QtWidgets.QLabel(LoginDialog)
        self.usrp.setGeometry(QtCore.QRect(50, 180, 59, 16))
        font = QtGui.QFont()
        font.setFamily("Aa芒小果")
        font.setPointSize(14)
        font.setBold(True)
        self.usrp.setFont(font)
        self.usrp.setStyleSheet("background-color: rgba(255, 255, 255, 75);")
        self.usrp.setObjectName("usrp")
        self.usrLineEdit = QtWidgets.QLineEdit(LoginDialog)
        self.usrLineEdit.setGeometry(QtCore.QRect(110, 140, 201, 21))
        self.usrLineEdit.setText("")
        self.usrLineEdit.setEchoMode(QtWidgets.QLineEdit.Normal)
        self.usrLineEdit.setStyleSheet('''QLineEdit{border-radius:5px;background:rgba(254, 168, 39, 50);}''')
        self.usrLineEdit.setObjectName("usrLineEdit")
        self.pwdLineEdit = QtWidgets.QLineEdit(LoginDialog)
        self.pwdLineEdit.setGeometry(QtCore.QRect(110, 180, 201, 21))
        self.pwdLineEdit.setEchoMode(QtWidgets.QLineEdit.Password)
        self.pwdLineEdit.setStyleSheet('''QLineEdit{border-radius:5px;background:rgba(254, 168, 39, 50);}''')
        self.pwdLineEdit.setObjectName("pwdLineEdit")
        self.loginBtn = QtWidgets.QPushButton(LoginDialog)
        self.loginBtn.setGeometry(QtCore.QRect(111, 230, 81, 32))
        font = QtGui.QFont()
        font.setFamily("Aa芒小果")
        font.setPointSize(16)
        font.setUnderline(False)
        font.setStrikeOut(False)
        self.loginBtn.setFont(font)
        self.loginBtn.setStyleSheet('''QPushButton{border: 2px solid rgb(254, 168, 39);border-radius:5px;}
                                QPushButton:hover{background:rgb(254, 168, 39);font-size:18px;}''')
        self.loginBtn.setObjectName("loginBtn")
        self.rebtn = QtWidgets.QPushButton(LoginDialog)
        
        self.rebtn.setGeometry(QtCore.QRect(221, 230, 81, 32))
        font = QtGui.QFont()
        font.setFamily("Aa芒小果")
        font.setPointSize(16)
        self.rebtn.setFont(font)
        self.rebtn.setStyleSheet('''QPushButton{border: 2px solid rgb(254, 168, 39);border-radius:5px;}
                                QPushButton:hover{background:rgb(254, 168, 39);font-size:18px;}''')
        self.rebtn.setObjectName("reBtn")
        self.exitBtn = QtWidgets.QPushButton(LoginDialog)  
        self.exitBtn.setGeometry(QtCore.QRect(350, 0, 51, 32))
        font = QtGui.QFont()
        font.setFamily("Aa芒小果")
        font.setPointSize(16)
        self.exitBtn.setFont(font)
        self.exitBtn.setStyleSheet('''QPushButton{border: 2px solid rgb(254, 168, 39);border-radius:5px;}
                                QPushButton:hover{background:rgb(254, 168, 39);font-size:18px;}''')
        self.exitBtn.setObjectName("exitBtn")
        self.note = QtWidgets.QLabel(LoginDialog)
        self.note.setGeometry(QtCore.QRect(120, 20, 161, 20))
        font = QtGui.QFont()
        font.setFamily("Aa芒小果")
        font.setPointSize(16)
        font.setBold(True)
        font.setWeight(75)
        self.note.setFont(font)
        self.note.setStyleSheet("background-color: rgba(254, 168, 39, 17);")
        self.note.setObjectName("note")
        self.background = QtWidgets.QFrame(LoginDialog)
        self.background.setGeometry(QtCore.QRect(0, 0, 400, 300))
        self.background.setStyleSheet('''background-color: rgb(254, 188, 35);''')
        self.background.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.background.setFrameShadow(QtWidgets.QFrame.Raised)
        self.background.setObjectName("background")
        self.photo = QtWidgets.QFrame(LoginDialog)
        self.photo.setGeometry(QtCore.QRect(190, 0, 210, 300))
        self.photo.setStyleSheet('''image: url(temo.png);border: none;
background-color: rgb(254, 188, 35);''')
        self.photo.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.photo.setFrameShadow(QtWidgets.QFrame.Raised)
        self.photo.setObjectName("photo")
        self.background.raise_()
        self.photo.raise_()
        self.usrn.raise_()
        self.usrp.raise_()
        self.usrLineEdit.raise_()
        self.pwdLineEdit.raise_()
        self.loginBtn.raise_()
        self.exitBtn.raise_()
        self.rebtn.raise_()
        self.note.raise_()

        self.retranslateUi(LoginDialog)
        self.exitBtn.clicked.connect(LoginDialog.close)
        QtCore.QMetaObject.connectSlotsByName(LoginDialog)

    def retranslateUi(self, LoginDialog):
        _translate = QtCore.QCoreApplication.translate
        LoginDialog.setWindowTitle(_translate("LoginDialog", "Dialog"))
        self.usrn.setText(_translate("LoginDialog", "用户名："))
        self.usrp.setText(_translate("LoginDialog", "密码："))
        self.usrLineEdit.setPlaceholderText(_translate("LoginDialog", "请输入用户名"))
        self.pwdLineEdit.setPlaceholderText(_translate("LoginDialog", "请输入密码"))
        self.loginBtn.setText(_translate("LoginDialog", "登录"))
        self.exitBtn.setText(_translate("LoginDialog", "退出"))
        self.rebtn.setText(_translate("LoginDialog", "注册"))
        self.note.setText(_translate("LoginDialog", "欢迎体验人工智障..."))

